﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master"  AutoEventWireup="true" CodeFile="PrintSalary.aspx.cs" Inherits="Salary_PrintSalary" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div>
        <table  align="center" style="width: 500px">
            <tr>
                <td colspan="3">
                    选择要查看的年份：<asp:DropDownList ID="DropDownList1" runat="server" Width="116px">
                    </asp:DropDownList>月份：<asp:DropDownList ID="DropDownList2" runat="server" Width="113px">
                        <asp:ListItem>1</asp:ListItem>
                        <asp:ListItem>2</asp:ListItem>
                        <asp:ListItem>3</asp:ListItem>
                        <asp:ListItem>4</asp:ListItem>
                        <asp:ListItem>5</asp:ListItem>
                        <asp:ListItem>6</asp:ListItem>
                        <asp:ListItem>7</asp:ListItem>
                        <asp:ListItem>8</asp:ListItem>
                        <asp:ListItem>9</asp:ListItem>
                        <asp:ListItem>10</asp:ListItem>
                        <asp:ListItem>11</asp:ListItem>
                        <asp:ListItem>12</asp:ListItem>
                    </asp:DropDownList></td>
            </tr>
            <tr>
                <td colspan="3" align="center">
                    <asp:Button ID="btnSearch" runat="server" Text="确定" OnClick="btnSearch_Click" /><br />
                    <asp:Label ID="Label3" runat="server" Visible="False" Width="284px">对不起，没有找到您要的记录！</asp:Label></td>
            </tr>
            <tr>
                <td colspan="3" style="height: 21px">
                    <asp:GridView ID="grdResult" runat="server" AutoGenerateColumns="False" BackColor="White"
                        BorderColor="#DEDFDE" BorderStyle="None" BorderWidth="1px" CellPadding="4" ForeColor="Black"
                        GridLines="Vertical" OnSelectedIndexChanged="grdResult_SelectedIndexChanged">
                        <FooterStyle BackColor="#CCCC99" />
                        <Columns>
                            <asp:BoundField DataField="SalaryTime" HeaderText="发薪日期" />
                            <asp:BoundField DataField="BasicSalary" HeaderText="基本工资" />
                            <asp:BoundField DataField="OvertimeSalary" HeaderText="加班工资" />
                            <asp:BoundField DataField="AbsenceSalary" HeaderText="考勤扣除" />
                            <asp:BoundField DataField="OtherSalary" HeaderText="其它增减" />
                            <asp:BoundField DataField="ActualSalary" HeaderText="最终所得" />
                            <asp:ButtonField CommandName="Select" HeaderText="选定" Text="选定" />
                        </Columns>
                        <RowStyle BackColor="#F7F7DE" />
                        <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" />
                        <HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" />
                        <AlternatingRowStyle BackColor="White" />
                    </asp:GridView>
                </td>
            </tr>
            <tr>
                <td colspan="3" style="height: 21px" align="center">
                    <asp:Button ID="btnPrint" runat="server" Text="打印工资单" OnClick="btnPrint_Click" Visible="False" /></td>
            </tr>
        </table>
    
    </div>
</asp:Content>